package com.duanjw.springframework.di.service.impl;

import com.duanjw.springframework.di.dao.UserDao;
import com.duanjw.springframework.di.service.OrdersService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class OrdersServiceImpl implements OrdersService {

//    @Autowired
//    private UserDao userDao;

    private final UserDao userDaoImpl;

    public OrdersServiceImpl(UserDao userDaoImpl) {
        this.userDaoImpl = userDaoImpl;
    }
//
//    @Autowired
//    private UserDaoImpl userDaoImpl1;
//
//    @Autowired
//    private UserDaoImpl aaa;
    @Override
    public void query() {
//        System.out.println(userDao);
        System.out.println(userDaoImpl);
//        System.out.println(userDaoImpl1);
//        System.out.println(aaa);

//        System.out.println("UserServiceImpl.query，userDao："+userDao );
    }
}
